<?php echo $this->tinyMce; ?>
<?php echo form_open('cmladmin/pageadd',array('class'=>'form-horizontal form-validate','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <table class="table-form-submit table-kh">
        <tr>
            <td></td>
            <td>
                <ul class="nav nav-tabs nav-noborder">
                  <li><a href="#entitle" data-toggle="tab"><label for="title">Title</label></a></li>
                  <li><a href="#khtitle" data-toggle="tab"><label for="titlekh">Khmer Title</label></a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="entitle">
                        <input type="text" required="" name="title" placeholder="title" class="form-control" />
                    </div>
                    <div class="tab-pane" id="khtitle">
                        <input type="text" required="" name="titlekh" placeholder="khmer title" class="form-control" />
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="isshow_title" type="checkbox" checked="checked" /> Show title
                </label>
            </td>
        </tr>
        <tr>
            <td><label for="category_id">Category</label></td>
            <td>
                <?php echo form_dropdown('category_id', $categorylist,array(), 'class="form-control"') ?>
            </td>
        </tr>
        <tr>
            <td><label for="segment">Link/Url *</label></td>
            <td><input type="text" required="" name="segment" placeholder="input url path" class="form-control" /></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <ul class="nav nav-tabs nav-noborder">
                  <li><a href="#enkeyword" data-toggle="tab"><label for="keyword">Meta Keyword</label></a></li>
                  <li><a href="#khkeyword" data-toggle="tab"><label for="keywordkh">Khmer Word</label></a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="enkeyword">
                        <input type="text" name="keyword" placeholder="Meta keyword" class="form-control" />
                    </div>
                    <div class="tab-pane" id="khkeyword">
                        <input type="text" name="keywordkh" placeholder="Khmer Word" class="form-control" />
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <ul class="nav nav-tabs nav-noborder">
                  <li><a href="#endescription" data-toggle="tab"><label for="description">Description</label></a></li>
                  <li><a href="#khdescription" data-toggle="tab"><label for="descriptionkh">Khmer Description</label></a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="endescription">
                        <input type="text" name="description" placeholder="Meta Descrption" class="form-control" />
                    </div>
                    <div class="tab-pane" id="khdescription">
                        <input type="text" name="descriptionkh" placeholder="Khmer Description" class="form-control" />
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="isshow_in_menu" type="checkbox" checked="checked" /> Show in Menu
                </label>
            </td>
        </tr>
         <tr>
            <td><label for="parent_id">Parent</label></td>
            <td>
                <?php echo form_dropdown('parent_id', $pagelist, array(), 'class="form-control"') ?>
            </td>
        </tr>
        <tr>
            <td><label for="position">Display Order</label></td>
            <td><input type="text" name="position" placeholder="input order number" class="form-control" /></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <ul class="nav nav-tabs">
                  <li><a href="#encontent" data-toggle="tab"><label for="htmlcontent">Content</label></a></li>
                  <li><a href="#khcontent" data-toggle="tab"><label for="htmlcontentkh">Khmer Content</label></a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="encontent">
                        <textarea id="htmlcontent" name="htmlcontent" rows="15" cols="80" style="width: 80%"></textarea>
                    </div>
                    <div class="tab-pane" id="khcontent">
                        <textarea id="htmlcontentkh" name="htmlcontentkh" rows="15" cols="80" style="width: 80%"></textarea>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="activate" type="checkbox" checked="checked" /> Active
                </label>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <?php echo $form; ?>
            </td>
        </tr>
    </table>
 </fieldset> 

<?php echo form_close();?>